From: Daniel Golle Date: Thu, 26 Nov 2020 04:49:35 +0000 (+0000) Subject: jail: don't attempt to mount /sys with noatime X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=b87984baf3f4bdfb61b3b38bb4b2dfebeb91b6b9;p=project%2Fprocd.git jail: don't attempt to mount /sys with noatime Because that won't work. Use relatime instead. Signed-off-by: Daniel Golle --- diff --git a/jail/jail.c b/jail/jail.c index 5229c4f..80da47f 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -2755,7 +2755,7 @@ static void post_main(struct uloop_timeout *t) } if (opts.sysfs || opts.ocibundle) - add_mount("sysfs", "/sys", "sysfs", MS_NOATIME | MS_NODEV | MS_NOEXEC | MS_NOSUID | MS_RDONLY, 0, NULL, -1); + add_mount("sysfs", "/sys", "sysfs", MS_RELATIME | MS_NODEV | MS_NOEXEC | MS_NOSUID | MS_RDONLY, 0, NULL, -1); if (opts.ocibundle) add_mount("shm", "/dev/shm", "tmpfs", MS_NOSUID | MS_NOEXEC | MS_NODEV, 0, "mode=1777", -1);